<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddAppchannelToBannerTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('banner', function (Blueprint $table) {
            $table->unsignedTinyInteger('app_id')->default(1)->comment('应用ID');
            // $table->unsignedTinyInteger('platform')->default(2)->comment('平台：1-IOS，2-安卓');
            $table->string('app_channel', 80)->default('')->comment('应用渠道');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('banner', function (Blueprint $table) {
            //
        });
    }
}
